package com.hospital.pharmacy.dao;

import com.hospital.pharmacy.entity.SalesRecord;
import com.hospital.pharmacy.entity.SalesRecordExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SalesRecordMapper {
    long countByExample(SalesRecordExample example);

    int deleteByExample(SalesRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SalesRecord record);

    int insertSelective(SalesRecord record);

    List<SalesRecord> selectByExample(SalesRecordExample example);

    SalesRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SalesRecord record, @Param("example") SalesRecordExample example);

    int updateByExample(@Param("record") SalesRecord record, @Param("example") SalesRecordExample example);

    int updateByPrimaryKeySelective(SalesRecord record);

    int updateByPrimaryKey(SalesRecord record);
    List<SalesRecord>selectAllSale();
    List<SalesRecord>selectSaleByIvtrId(int ivtr_id);
    List<SalesRecord>selectSaleByDate(Date date);
    void deleteByIvtrId(int id);
}